<script id="container" name="{$name}" type="text/plain">{$content|contentFormat}</script>
<script type="text/javascript" src="/static/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/static/js/ueditor/ueditor.all.js"></script>
<script type="text/javascript">
    var ue = UE.getEditor('container',{
        serverUrl: '/editor',
        initialFrameHeight: {$height},
        toolbars: [
           ['fullscreen',
           'source',
           'undo',
           'redo',
           '|',
           'bold',
           'forecolor',
           'fontfamily',
           'fontsize',
           'justifyleft',
           'justifycenter',
           'justifyright',

           'insertcode',
           'paragraph',

           'link',
           'unlink',
           'blockquote',
           'horizontal',
           '|',
           'removeformat',
           'autotypeset',
           'simpleupload',
           'map',
           'insertvideo'
            ]
        ],
        autoHeightEnabled: true,
        autoFloatEnabled: true,
        zIndex: 100,
        paragraph: {
            'p': '普通文本',
            'h5': '大标题',
            'h6': '小标题'
        },
        removeFormatTags: 'big,del,dfn,em,font,i,ins,kbd,q,samp,small,strike,sub,sup,tt,u,var',
        removeFormatAttributes: 'class,style,lang,width,height,align,hspace,valign',
        retainOnlyLabelPasted: true
    });
</script>
